
// Js Initiate for the owlCarousel Content
$(document).ready(function() {

    var owl = $("#product-cara");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 4, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,4],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev").click(function(){
        owl.trigger('owl.prev');
    })
      
});

// Js Initiate for the owlCarousel Content

$(document).ready(function() {
    var owl = $("#product-cara1");
    owl.owlCarousel({
        autoPlay: 4000,
        items : 4, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,4],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next1").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev1").click(function(){
        owl.trigger('owl.prev');
    })
      
});

// Js Initiate for the owlCarousel Content
$(document).ready(function() {
    var owl = $("#exclusive-cara");
    owl.owlCarousel({
        autoPlay: 4000,
        items : 4, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,4],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next2").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev2").click(function(){
        owl.trigger('owl.prev');
    })
      
});
// Js Initiate for the owlCarousel Content
$(document).ready(function() {

    var owl = $("#relationship-cara");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 4, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,4],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,3],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next5").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev5").click(function(){
        owl.trigger('owl.prev');
    })
      
});

// Js Initiate for the owlCarousel Content
$(document).ready(function() {

    var owl = $("#owl-people");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 3, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,3],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next11").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev11").click(function(){
        owl.trigger('owl.prev');
    })
      
});

// Js Initiate for the owlCarousel Content
$(document).ready(function() {

    var owl = $("#owl-liked");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 3, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,3],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next8").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev8").click(function(){
        owl.trigger('owl.prev');
    })
      
});
// Js Initiate for the owlCarousel Content
$(document).ready(function() {

    var owl = $("#owl-classes");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 3, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,3],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next7").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev7").click(function(){
        owl.trigger('owl.prev');
    })
      
});
// Js Initiate for the owlCarousel Content
$(document).ready(function() {

    var owl = $("#owl-current");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 3, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,3],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [479,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next6").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev6").click(function(){
        owl.trigger('owl.prev');
    })
      
});
// Js Initiate for the owlCarousel Content
$(document).ready(function() {

    var owl = $("#owl-ending");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 3, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,3],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next9").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev9").click(function(){
        owl.trigger('owl.prev');
    })
      
});

// Js Initiate for the owlCarousel Content
$(document).ready(function() {

    var owl = $("#owl-ending2");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 3, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,3],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next10").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev10").click(function(){
        owl.trigger('owl.prev');
    })
      
});


$(document).ready(function() {

    var owl = $("#owl-people1");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 3, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,3],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next3").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev3").click(function(){
        owl.trigger('owl.prev');
    })
      
});

$(document).ready(function() {

    var owl = $("#owl-literal");

    owl.owlCarousel({
        autoPlay: 4000,
        items : 3, //10 items above 1000px browser width
        itemsCustom : false,
        itemsDesktop : [1199,3],
        itemsDesktopSmall : [980,3],
        itemsTablet: [768,2],
        itemsTabletSmall: false,
        itemsMobile : [480,1],
        pagination : false
    });


    // Custom Navigation Events
    $(".next4").click(function(){
        owl.trigger('owl.next');
    })
    $(".prev4").click(function(){
        owl.trigger('owl.prev');
    })
      
});


// Carousel for picture tab in Classes page

$(document).ready(function() {
 
    $("#owl-pictab").owlCarousel({
        navigation : true, // Show next and prev buttons
        pagination : false,
        slideSpeed : 300,
        paginationSpeed : 400,
        singleItem:true,
        autoPlay:true
 
    
 
    });
});

// Styling the session picker on Order Summary Page
$(document).ready(function() {
    $('.click-toggle').click(function() {
        $('float-container').removeClass('animating')
        $('.floater').toggleClass('animating');
    });
});

// Hide or Show the back to top button on specific screen sizes

$(document).ready(function(){
  
    //Check to see if the window is top if not then display button
    $(window).scroll(function(){
        if ($(this).scrollTop() > 200) {
            $('.back-to-top').fadeIn();
        } else {
            $('.back-to-top').fadeOut();
        }
    });
  
    //Click event to scroll to top
    $('.back-to-top').click(function(){
        $('html, body').animate({
            scrollTop : 0
        },800);
        return false;
    });
  
});



// Jquery Code to add a class on links of accordian 

$(".panel-heading").click(function(){
    $("div.panel-heading").removeClass("activebg");
    $(this).addClass("activebg");
    $(".panel-title>a").addClass('color','black');
});

// Price Range Slider Bootstrap Js
!function( $ ) {

    var Slider = function(element, options) {
        this.element = $(element);
        this.picker = $('<div class="slider">'+
            '<div class="slider-track">'+
            '<div class="slider-selection"></div>'+
            '<div class="slider-handle"></div>'+
            '<div class="slider-handle"></div>'+
            '</div>'+
            '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'+
            '</div>')
        .insertBefore(this.element)
        .append(this.element);
        this.id = this.element.data('slider-id')||options.id;
        if (this.id) {
            this.picker[0].id = this.id;
        }

        if (typeof Modernizr !== 'undefined' && Modernizr.touch) {
            this.touchCapable = true;
        }

        var tooltip = this.element.data('slider-tooltip')||options.tooltip;

        this.tooltip = this.picker.find('.tooltip');
        this.tooltipInner = this.tooltip.find('div.tooltip-inner');

        this.orientation = this.element.data('slider-orientation')||options.orientation;
        switch(this.orientation) {
            case 'vertical':
                this.picker.addClass('slider-vertical');
                this.stylePos = 'top';
                this.mousePos = 'pageY';
                this.sizePos = 'offsetHeight';
                this.tooltip.addClass('right')[0].style.left = '100%';
                break;
            default:
                this.picker
                .addClass('slider-horizontal')
                .css('width', this.element.outerWidth());
                this.orientation = 'horizontal';
                this.stylePos = 'left';
                this.mousePos = 'pageX';
                this.sizePos = 'offsetWidth';
                this.tooltip.addClass('top')[0].style.top = -this.tooltip.outerHeight() - 14 + 'px';
                break;
        }

        this.min = this.element.data('slider-min')||options.min;
        this.max = this.element.data('slider-max')||options.max;
        this.step = this.element.data('slider-step')||options.step;
        this.value = this.element.data('slider-value')||options.value;
        if (this.value[1]) {
            this.range = true;
        }

        this.selection = this.element.data('slider-selection')||options.selection;
        this.selectionEl = this.picker.find('.slider-selection');
        if (this.selection === 'none') {
            this.selectionEl.addClass('hide');
        }
        this.selectionElStyle = this.selectionEl[0].style;


        this.handle1 = this.picker.find('.slider-handle:first');
        this.handle1Stype = this.handle1[0].style;
        this.handle2 = this.picker.find('.slider-handle:last');
        this.handle2Stype = this.handle2[0].style;

        var handle = this.element.data('slider-handle')||options.handle;
        switch(handle) {
            case 'round':
                this.handle1.addClass('round');
                this.handle2.addClass('round');
                break
            case 'triangle':
                this.handle1.addClass('triangle');
                this.handle2.addClass('triangle');
                break
        }

        if (this.range) {
            this.value[0] = Math.max(this.min, Math.min(this.max, this.value[0]));
            this.value[1] = Math.max(this.min, Math.min(this.max, this.value[1]));
        } else {
            this.value = [ Math.max(this.min, Math.min(this.max, this.value))];
            this.handle2.addClass('hide');
            if (this.selection == 'after') {
                this.value[1] = this.max;
            } else {
                this.value[1] = this.min;
            }
        }
        this.diff = this.max - this.min;
        this.percentage = [
        (this.value[0]-this.min)*100/this.diff,
        (this.value[1]-this.min)*100/this.diff,
        this.step*100/this.diff
        ];

        this.offset = this.picker.offset();
        this.size = this.picker[0][this.sizePos];

        this.formater = options.formater;

        this.layout();

        if (this.touchCapable) {
            // Touch: Bind touch events:
            this.picker.on({
                touchstart: $.proxy(this.mousedown, this)
            });
        } else {
            this.picker.on({
                mousedown: $.proxy(this.mousedown, this)
            });
        }

        if (tooltip === 'show') {
            this.picker.on({
                mouseenter: $.proxy(this.showTooltip, this),
                mouseleave: $.proxy(this.hideTooltip, this)
            });
        } else {
            this.tooltip.addClass('hide');
        }
    };

    Slider.prototype = {
        constructor: Slider,

        over: false,
        inDrag: false,
    
        showTooltip: function(){
            this.tooltip.addClass('in');
            //var left = Math.round(this.percent*this.width);
            //this.tooltip.css('left', left - this.tooltip.outerWidth()/2);
            this.over = true;
        },
    
        hideTooltip: function(){
            if (this.inDrag === false) {
                this.tooltip.removeClass('in');
            }
            this.over = false;
        },

        layout: function(){
            this.handle1Stype[this.stylePos] = this.percentage[0]+'%';
            this.handle2Stype[this.stylePos] = this.percentage[1]+'%';
            if (this.orientation == 'vertical') {
                this.selectionElStyle.top = Math.min(this.percentage[0], this.percentage[1]) +'%';
                this.selectionElStyle.height = Math.abs(this.percentage[0] - this.percentage[1]) +'%';
            } else {
                this.selectionElStyle.left = Math.min(this.percentage[0], this.percentage[1]) +'%';
                this.selectionElStyle.width = Math.abs(this.percentage[0] - this.percentage[1]) +'%';
            }
            if (this.range) {
                this.tooltipInner.text(
                    this.formater(this.value[0]) + 
                    ' : ' + 
                    this.formater(this.value[1])
                    );
                this.tooltip[0].style[this.stylePos] = this.size * (this.percentage[0] + (this.percentage[1] - this.percentage[0])/2)/100 - (this.orientation === 'vertical' ? this.tooltip.outerHeight()/2 : this.tooltip.outerWidth()/2) +'px';
            } else {
                this.tooltipInner.text(
                    this.formater(this.value[0])
                    );
                this.tooltip[0].style[this.stylePos] = this.size * this.percentage[0]/100 - (this.orientation === 'vertical' ? this.tooltip.outerHeight()/2 : this.tooltip.outerWidth()/2) +'px';
            }
        },

        mousedown: function(ev) {

            // Touch: Get the original event:
            if (this.touchCapable && ev.type === 'touchstart') {
                ev = ev.originalEvent;
            }

            this.offset = this.picker.offset();
            this.size = this.picker[0][this.sizePos];

            var percentage = this.getPercentage(ev);

            if (this.range) {
                var diff1 = Math.abs(this.percentage[0] - percentage);
                var diff2 = Math.abs(this.percentage[1] - percentage);
                this.dragged = (diff1 < diff2) ? 0 : 1;
            } else {
                this.dragged = 0;
            }

            this.percentage[this.dragged] = percentage;
            this.layout();

            if (this.touchCapable) {
                // Touch: Bind touch events:
                $(document).on({
                    touchmove: $.proxy(this.mousemove, this),
                    touchend: $.proxy(this.mouseup, this)
                });
            } else {
                $(document).on({
                    mousemove: $.proxy(this.mousemove, this),
                    mouseup: $.proxy(this.mouseup, this)
                });
            }

            this.inDrag = true;
            var val = this.calculateValue();
            this.element.trigger({
                type: 'slideStart',
                value: val
            }).trigger({
                type: 'slide',
                value: val
            });
            return false;
        },

        mousemove: function(ev) {
      
            // Touch: Get the original event:
            if (this.touchCapable && ev.type === 'touchmove') {
                ev = ev.originalEvent;
            }

            var percentage = this.getPercentage(ev);
            if (this.range) {
                if (this.dragged === 0 && this.percentage[1] < percentage) {
                    this.percentage[0] = this.percentage[1];
                    this.dragged = 1;
                } else if (this.dragged === 1 && this.percentage[0] > percentage) {
                    this.percentage[1] = this.percentage[0];
                    this.dragged = 0;
                }
            }
            this.percentage[this.dragged] = percentage;
            this.layout();
            var val = this.calculateValue();
            this.element
            .trigger({
                type: 'slide',
                value: val
            })
            .data('value', val)
            .prop('value', val);
            return false;
        },

        mouseup: function(ev) {
            if (this.touchCapable) {
                // Touch: Bind touch events:
                $(document).off({
                    touchmove: this.mousemove,
                    touchend: this.mouseup
                });
            } else {
                $(document).off({
                    mousemove: this.mousemove,
                    mouseup: this.mouseup
                });
            }

            this.inDrag = false;
            if (this.over == false) {
                this.hideTooltip();
            }
            this.element;
            var val = this.calculateValue();
            this.element
            .trigger({
                type: 'slideStop',
                value: val
            })
            .data('value', val)
            .prop('value', val);
            return false;
        },

        calculateValue: function() {
            var val;
            if (this.range) {
                val = [
                (this.min + Math.round((this.diff * this.percentage[0]/100)/this.step)*this.step),
                (this.min + Math.round((this.diff * this.percentage[1]/100)/this.step)*this.step)
                ];
                this.value = val;
            } else {
                val = (this.min + Math.round((this.diff * this.percentage[0]/100)/this.step)*this.step);
                this.value = [val, this.value[1]];
            }
            return val;
        },

        getPercentage: function(ev) {
            if (this.touchCapable) {
                ev = ev.touches[0];
            }
            var percentage = (ev[this.mousePos] - this.offset[this.stylePos])*100/this.size;
            percentage = Math.round(percentage/this.percentage[2])*this.percentage[2];
            return Math.max(0, Math.min(100, percentage));
        },

        getValue: function() {
            if (this.range) {
                return this.value;
            }
            return this.value[0];
        },

        setValue: function(val) {
            this.value = val;

            if (this.range) {
                this.value[0] = Math.max(this.min, Math.min(this.max, this.value[0]));
                this.value[1] = Math.max(this.min, Math.min(this.max, this.value[1]));
            } else {
                this.value = [ Math.max(this.min, Math.min(this.max, this.value))];
                this.handle2.addClass('hide');
                if (this.selection == 'after') {
                    this.value[1] = this.max;
                } else {
                    this.value[1] = this.min;
                }
            }
            this.diff = this.max - this.min;
            this.percentage = [
            (this.value[0]-this.min)*100/this.diff,
            (this.value[1]-this.min)*100/this.diff,
            this.step*100/this.diff
            ];
            this.layout();
        }
    };

    $.fn.slider = function ( option, val ) {
        return this.each(function () {
            var $this = $(this),
            data = $this.data('slider'),
            options = typeof option === 'object' && option;
            if (!data)  {
                $this.data('slider', (data = new Slider(this, $.extend({}, $.fn.slider.defaults,options))));
            }
            if (typeof option == 'string') {
                data[option](val);
            }
        })
    };

    $.fn.slider.defaults = {
        min: 0,
        max: 10,
        step: 1,
        orientation: 'horizontal',
        value: 5,
        selection: 'before',
        tooltip: 'show',
        handle: 'round',
        formater: function(value) {
            return value;
        }
    };

    $.fn.slider.Constructor = Slider;

}( window.jQuery );

// End of Bootstrap Price Range Slider 

 
// Calling of Id on Price Range and Configuration 

// End Of Price Range and Configuration 

// Styling the session picker on Order Summary Page
$(document).ready(function() {
    $('.click-toggle').click(function() {
        $('float-container').removeClass('animating')
        $('.floater').toggleClass('animating');
    });
});


// Hide or Show the back to top button on specific screen sizes

$(document).ready(function(){
  
    //Check to see if the window is top if not then display button
    $(window).scroll(function(){
        if ($(this).scrollTop() > 200) {
            $('.back-to-top').fadeIn();
        } else {
            $('.back-to-top').fadeOut();
        }
    });
  
    //Click event to scroll to top
    $('.back-to-top').click(function(){
        $('html, body').animate({
            scrollTop : 0
        },800);
        return false;
    });
  
});


// Js Code for Rating System

$(document).ready(function(){
    //  Check Radio-box
    $(".star-rating input:radio").attr("checked", false);
    $('.star-rating input').click(function () {
        $(".star-rating span").removeClass('checked');
        $(this).parent().addClass('checked');
    });   
});

// Initializing Bootstrap Timepicker
// $("#start-time,#start-time1,#start-time2,#finish-time,#finish-time1,#finish-time2,#struct-stime,#struct-stime1,#struct-stime2,#struct-etime,#struct-etime1,#struct-etime2,#stime,#ftime,#stime1,#ftime1,#stime2,#ftime2,#b-stime,#b-etime,#b-stime1,#b-etime1,#b-stime2,#b-etime2,#s-stime,#s-etime,#s-stime1,#s-etime1,#s-stime2,#s-etime2").timepicker({
//minuteStep: 5,
//showInputs: false,
//disableFocus: true
//});


// Login Page Popup
   

// <!-- bottom fixed footer-newsletter js -->
$(document).ready(function(e){
    $('#up-arrow').click(function() {
        $('.fixed-footer').animate({
            bottom: '0',
        }, 600, function() {
            // Animation complete.
            });
        $('#up-arrow').hide();
        $('#down-arrow').show();
    });


    $('#down-arrow').click(function() {
        $('.fixed-footer').animate({
            bottom: '-108',
        }, 600, function() {
            // Animation complete.
            });
        $('#up-arrow').show();
        $('#down-arrow').hide();
    });
});


$(document).ready(function(e) {
    $('#open-arrow').click(function() {
        $('.floater').animate({
            left: '0',
        }, 600, function() {
            // Animation complete.
            });
        $('#open-arrow').hide();
        $('#close-arrow').show();
    });


    $('#close-arrow').click(function() {
        $('.floater').animate({
            left: '-294',
        }, 600, function() {
            // Animation complete.
            });
        $('#open-arrow').show();
        $('#close-arrow').hide();
    });
})

$(document).ready(function(e) {
    $("#review-text").click(function() {
        $(".add-review").show();
    });
    $("#review-dismis").click(function() {
        $(".add-review").hide();
    });
})


$(document).ready(function(e) {
    $('#login').addClass('activate');
    $('#drop-login').on('click', function() {
        window.location = "#top-position";
        $('#login-panel').slideToggle();

    });

});

$(document).ready(function() {
    $('.registration-form').hide();
    $('.forgetpasswordform').hide();
    $('#signup').click(function() {
        $('#login-form')[0].reset();
        $('#forget-form')[0].reset();
        $('.forgetpasswordform').hide();
        $('#login').removeClass('activate');
        $('#signup').addClass('activate');
        $('.login-form').slideUp('slow');
        $('.registration-form').slideDown('slow');
    });
    $('#login').click(function() {
        $('#users-registration')[0].reset();
        $('#forget-form')[0].reset();
        $('.forgetpasswordform').hide();
        $('#login').addClass('activate');
        $('#signup').removeClass('activate');
        $('.registration-form').slideUp('slow');
        $('.login-form').slideDown('slow');
    });
    $(".forgetpasswordfield").click(function() {
        $('#login-form')[0].reset();
        $('#users-registration')[0].reset();
        $('.registration-form').hide();
        $('.login-form').hide();
        $('#login').removeClass('activate');
        $('#signup').removeClass('activate');
        $('.forgetpasswordform').show();
    });
});

// $(document).ready(function() {
//     $(document.body).on('click', '.dropdown-menu li', function(event) {
//         var $target = $(event.currentTarget);
//         $target.closest('.btn-group')
//                 .find('[data-bind="label"]').text($target.text())
//                 .end()
//                 .children('.dropdown-toggle').dropdown('toggle');
//         return false;
//     });
// });


// <!-- bottom fixed footer-newsletter js -->
$(document).ready(function(e) {
    $(window).scroll(function() {
        if ($(this).scrollTop() > 250) {
            $('.fixed-footer').fadeIn();
        } else {
            $('.fixed-footer').fadeOut();
        }
    });
    $('#up-arrow').click(function() {
        $('.fixed-footer').animate({
            bottom: '0',
        }, 600, function() {
            // Animation complete.
            });
        $('#up-arrow').hide();
        $('#down-arrow').show();
    });


    $('#down-arrow').click(function() {
        $('.fixed-footer').animate({
            bottom: '-130',
        }, 600, function() {
            // Animation complete.
            });
        $('#up-arrow').show();
        $('#down-arrow').hide();
    });
});
$('.subscribe-btn').click(function() {
    $('#alert-msg').show(function() {
        // Animation complete.
        });
    $('#alert-msg').hide(1500);
});
$(document).ready(function(e) {
    $('#socialMedia').on('click', function() {
        $('#social-panel').slideToggle("slow", function() {
            // Animation complete.
            });

    });

});
// script to activate date picker in classes and courses page

 